package com.coins.agent;

/**
 * 功能：工作事件名称
 * 
 * @author 任梁荣
 * */
public enum HTTPEvents {
	
	ZBORDER("order"),
	ZBTICKER("ticker"), 
	ZBGETORDER("getOrder"), 
	ZBGETORDERSNEW("getOrdersNew"), 
	ZBGETACCOUNTINFO("getAccountInfo"), 
	ZBMARKETS("markets"), 
	ZBGETCHARGERECORD("getChargeRecord"), 
	ZBGETWITHDRAWRECORD("getWithdrawRecord"), 
	ZBGETWITHRAWADDRESS("getWithdrawAddress"), 
	ZBGETUSERADDRESS("getUserAddress"), 
	ZBGETUNFINISHEDORDERSIGNORETRADETYPE("getUnfinishedOrdersIgnoreTradeType"), 
	ZBGETORDERSIGNORETRADETYPE("getOrdersIgnoreTradeType"), 
	ZBGETORDERS("getOrders"), 
	ZBCANCELORDER("cancelOrder"); 
	
	private String values;

	private HTTPEvents(String values) {
		this.values = values;
	}

	public static HTTPEvents nvalueOf(String value) {
		for (HTTPEvents names : HTTPEvents.values()) {
			if (names.values.equals(value)) {
				return names;
			}
		}
		return null;
	}

	@Override
	public String toString() {
		return this.values;
	}
}
